Let's say you have some
functionality that you wish to expose to
consumers as an API, it can be challenging to deploy and manage
that API on your own. Cloud Endpoints enables you to deploy and manage the
API on Google Cloud. In the module, managing
APIs with Cloud Endpoints, you will learn how to develop an open API configuration
for your rest API, you'll learn techniques to secure and restrict
access to the API, deploy new versions of the API, and deploy the API to test
in production environments. You'll also learn how to
monitor metrics for your API. An API gateway enables
clients to retrieve data from multiple services
with a single request. An API gateway creates a layer of abstraction and insulates the clients from the details of an application that is
partitioned into microservices. You can use Cloud Endpoints
to implement API gateways. Additionally, the APIs for your application can
run on backends, such as App Engine, Google Kubernetes Engine
or GKE or Compute Engine. If you have Legacy
applications that cannot be refactored
and moved to the Cloud, consider implementing APIs as
an adapter layer or facade. Each consumer can then invoke these modern APIs
instead of invoking outdated APIs using old protocols and
disparate interfaces. Using the Apigee API platform, you can design, secure, analyze, and scale your APIs all while seamlessly leveraging
your Legacy backends. For more information about
the Apigee API platform, see the downloads
and resources pain. There are a few issues
to consider when deploying and managing
APIs in your own. What language and format will you use to describe the interface? For example, will you use
a format such as wizdl or open API to express the schema and
constraints of the API? How will you
authenticate services and users who invoke your API? How will you ensure that your
API scales to meet demand? Does your Infrastructure
log details about API invocations and provide
monitoring metrics? Cloud Endpoints provides
the infrastructure support that you need to deploy
and manage robust, secure, and scalable APIs. Cloud Endpoints supports
the open API specification and gRPC API specification. Cloud Endpoints
supports service to service authentication and user authentication
with Firebase, Auth0, and Google authentication. The extensible service proxy, service management
and service control APIs together validate requests, logged data in handle
high volumes of traffic. Using Cloud Endpoints, Cloud
Logging and Cloud Trace, you can view detailed logs, Trace lists, and metrics
related to traffic volume, latency, size of requests
and responses and errors. JSON HTTP 1.1 based REST APIs are popular
and easy-to-use. To enable Cloud
Endpoints for rest APIs, create the API configuration in the YAML file based on the
open API specification. gRPC is a newer
faster technology. You can generate Client Libraries for various
programming languages. To enable Cloud
Endpoints for gRPC APIs, create your service definition
by using protocol buffers, and then create a
service configuration by using the gRPC API specification. Cloud Endpoints
supports transcoding of HTTP JSON calls into gRPC. Your clients can access
your gRPC API by using plain old HTTP JSON calls. In the rest of this module, we'll focus on JSON
based REST APIs. For information about gRPC APIs, see the downloads
and resources pane.